package com.ai.wx.service;

import java.util.List;

import com.ai.core.pagemode.Json;
import com.ai.core.pagemode.PageFilter;
import com.ai.wx.entity.AgentBrokerageDraw;
import com.ai.wx.entity.AgentUser;
import com.ai.wx.entity.PAgentBrokerageDraw;
import com.ai.wx.exception.FlowMarketException;

public interface AdminService {
	public Json saveAgentUser(AgentUser agentUser);
	/**
	 * 同意佣金提取
	 * @param draw
	 * @throws FlowMarketException
	 */
	public Json approveDrawBrokerage(AgentBrokerageDraw draw) throws FlowMarketException;

	/**
	 * 拒绝佣金提取
	 * @param draw
	 * @throws FlowMarketException
	 */
	public Json refuseDrawBrokerage(AgentBrokerageDraw draw) throws FlowMarketException;
	
	
	public Json doLogin(String username, String password);
	
	public List<AgentUser> getAgentUserList(AgentUser agentUser, PageFilter pf);
	public Long countAgentUserList(AgentUser agentUser);
	public List<PAgentBrokerageDraw> getBrokerageDrawList(PAgentBrokerageDraw pAgentBrokerageDraw, PageFilter pf);
	public Long countBrokerageDrawList(PAgentBrokerageDraw pAgentBrokerageDraw);

}
